package router

import (
	"gitlab.yoyiit.com/youyi/go-common/constant"
	"github.com/gin-gonic/gin"
)

type BaseRouter struct {
	somsHandler          handler.ProductCustomFieldListColumnHandler
}

func (r *BaseRouter) SetRouter(app *gin.Engine) {
	group := app.Group(constant.??????)
	group.GET("/productCustomFieldListColumn", r.somsHandler.ListProductCustomFieldListColumn())
	group.GET("/productCustomFieldListColumn/:id", r.somsHandler.GetProductCustomFieldListColumn())
	group.PUT("/productCustomFieldListColumn", r.somsHandler.AddProductCustomFieldListColumn())
	group.POST("/productCustomFieldListColumn/:id", r.somsHandler.EditProductCustomFieldListColumn())
	group.DELETE("/productCustomFieldListColumn/:id", r.somsHandler.DeleteProductCustomFieldListColumn())
	group.POST("/batchDeleteProductCustomFieldListColumn", r.somsHandler.BatchDeleteProductCustomFieldListColumn())
}